import { createStore } from 'vuex'
import { IUserState } from './modules/user'
import user from './modules/user'
import createPersistedState from "vuex-persistedstate"

export interface IGlobalState {
  user: IUserState
}

const store = createStore<IGlobalState>({
  mutations: {
  },
  actions: {
  },
  modules: {
    user
  },
  plugins: [createPersistedState()]
})


export default store
